package com.eshop.modules.activity.vo;

import java.io.Serializable;

public class BargainCountVo implements Serializable
{
    private Double alreadyPrice;
    private Integer count;
    private Integer pricePercent;
    private Integer status;
    private Double price;
    private Boolean userBargainStatus;
    
    BargainCountVo(final Double alreadyPrice, final Integer count, final Integer pricePercent, final Integer status, final Double price, final Boolean userBargainStatus) {
        this.alreadyPrice = alreadyPrice;
        this.count = count;
        this.pricePercent = pricePercent;
        this.status = status;
        this.price = price;
        this.userBargainStatus = userBargainStatus;
    }
    
    public static BargainCountVoBuilder builder() {
        return new BargainCountVoBuilder();
    }
    
    public Double getAlreadyPrice() {
        return this.alreadyPrice;
    }
    
    public Integer getCount() {
        return this.count;
    }
    
    public Integer getPricePercent() {
        return this.pricePercent;
    }
    
    public Integer getStatus() {
        return this.status;
    }
    
    public Double getPrice() {
        return this.price;
    }
    
    public Boolean getUserBargainStatus() {
        return this.userBargainStatus;
    }
    
    public void setAlreadyPrice(final Double alreadyPrice) {
        this.alreadyPrice = alreadyPrice;
    }
    
    public void setCount(final Integer count) {
        this.count = count;
    }
    
    public void setPricePercent(final Integer pricePercent) {
        this.pricePercent = pricePercent;
    }
    
    public void setStatus(final Integer status) {
        this.status = status;
    }
    
    public void setPrice(final Double price) {
        this.price = price;
    }
    
    public void setUserBargainStatus(final Boolean userBargainStatus) {
        this.userBargainStatus = userBargainStatus;
    }
    
    @Override
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof BargainCountVo)) {
            return false;
        }
        final BargainCountVo other = (BargainCountVo)o;
        if (!other.canEqual(this)) {
            return false;
        }
        final Object this$alreadyPrice = this.getAlreadyPrice();
        final Object other$alreadyPrice = other.getAlreadyPrice();
        Label_0065: {
            if (this$alreadyPrice == null) {
                if (other$alreadyPrice == null) {
                    break Label_0065;
                }
            }
            else if (this$alreadyPrice.equals(other$alreadyPrice)) {
                break Label_0065;
            }
            return false;
        }
        final Object this$count = this.getCount();
        final Object other$count = other.getCount();
        Label_0102: {
            if (this$count == null) {
                if (other$count == null) {
                    break Label_0102;
                }
            }
            else if (this$count.equals(other$count)) {
                break Label_0102;
            }
            return false;
        }
        final Object this$pricePercent = this.getPricePercent();
        final Object other$pricePercent = other.getPricePercent();
        Label_0139: {
            if (this$pricePercent == null) {
                if (other$pricePercent == null) {
                    break Label_0139;
                }
            }
            else if (this$pricePercent.equals(other$pricePercent)) {
                break Label_0139;
            }
            return false;
        }
        final Object this$status = this.getStatus();
        final Object other$status = other.getStatus();
        Label_0176: {
            if (this$status == null) {
                if (other$status == null) {
                    break Label_0176;
                }
            }
            else if (this$status.equals(other$status)) {
                break Label_0176;
            }
            return false;
        }
        final Object this$price = this.getPrice();
        final Object other$price = other.getPrice();
        Label_0213: {
            if (this$price == null) {
                if (other$price == null) {
                    break Label_0213;
                }
            }
            else if (this$price.equals(other$price)) {
                break Label_0213;
            }
            return false;
        }
        final Object this$userBargainStatus = this.getUserBargainStatus();
        final Object other$userBargainStatus = other.getUserBargainStatus();
        if (this$userBargainStatus == null) {
            if (other$userBargainStatus == null) {
                return true;
            }
        }
        else if (this$userBargainStatus.equals(other$userBargainStatus)) {
            return true;
        }
        return false;
    }
    
    protected boolean canEqual(final Object other) {
        return other instanceof BargainCountVo;
    }
    
    @Override
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $alreadyPrice = this.getAlreadyPrice();
        result = result * 59 + (($alreadyPrice == null) ? 43 : $alreadyPrice.hashCode());
        final Object $count = this.getCount();
        result = result * 59 + (($count == null) ? 43 : $count.hashCode());
        final Object $pricePercent = this.getPricePercent();
        result = result * 59 + (($pricePercent == null) ? 43 : $pricePercent.hashCode());
        final Object $status = this.getStatus();
        result = result * 59 + (($status == null) ? 43 : $status.hashCode());
        final Object $price = this.getPrice();
        result = result * 59 + (($price == null) ? 43 : $price.hashCode());
        final Object $userBargainStatus = this.getUserBargainStatus();
        result = result * 59 + (($userBargainStatus == null) ? 43 : $userBargainStatus.hashCode());
        return result;
    }
    
    @Override
    public String toString() {
        return "BargainCountVo(alreadyPrice=" + this.getAlreadyPrice() + ", count=" + this.getCount() + ", pricePercent=" + this.getPricePercent() + ", status=" + this.getStatus() + ", price=" + this.getPrice() + ", userBargainStatus=" + this.getUserBargainStatus() + ")";
    }
    
    public static class BargainCountVoBuilder
    {
        private Double alreadyPrice;
        private Integer count;
        private Integer pricePercent;
        private Integer status;
        private Double price;
        private Boolean userBargainStatus;
        
        BargainCountVoBuilder() {
        }
        
        public BargainCountVoBuilder alreadyPrice(final Double alreadyPrice) {
            this.alreadyPrice = alreadyPrice;
            return this;
        }
        
        public BargainCountVoBuilder count(final Integer count) {
            this.count = count;
            return this;
        }
        
        public BargainCountVoBuilder pricePercent(final Integer pricePercent) {
            this.pricePercent = pricePercent;
            return this;
        }
        
        public BargainCountVoBuilder status(final Integer status) {
            this.status = status;
            return this;
        }
        
        public BargainCountVoBuilder price(final Double price) {
            this.price = price;
            return this;
        }
        
        public BargainCountVoBuilder userBargainStatus(final Boolean userBargainStatus) {
            this.userBargainStatus = userBargainStatus;
            return this;
        }
        
        public BargainCountVo build() {
            return new BargainCountVo(this.alreadyPrice, this.count, this.pricePercent, this.status, this.price, this.userBargainStatus);
        }
        
        @Override
        public String toString() {
            return "BargainCountVo.BargainCountVoBuilder(alreadyPrice=" + this.alreadyPrice + ", count=" + this.count + ", pricePercent=" + this.pricePercent + ", status=" + this.status + ", price=" + this.price + ", userBargainStatus=" + this.userBargainStatus + ")";
        }
    }
}
